<?php

namespace Main\Api\Admin;

use FC\Json;

class config extends adminController
{
    // 获取id值
    public function typeid()
    {
        $res = $this->Model->getTypeId();
        Json::result($res, 0, 'ok');
    }
	

    // 获取id值
    public function save()
    {
		$post = \FC\post();
		foreach($post as $k=>$v){
            $where['cfg'] = $k;
			$data['content'] = $v;
			$this->Model->upConfig($where,$data);
		}
		Json::result('', 0, '保存成功');
    }
	
}
